package com.dubbo.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.TestRegistryService;
import com.hhcf.service.ZxbRegistryService;

/**
 * 
 * @Title: TestRegistryServiceImpl
 * @Description:dubbo service,仅用于对外服务链接
 * @Author: zhaotf
 * @Since:2017年2月20日 上午11:38:27
 * @Version:1.0
 */
@Service
public class TestRegistryServiceImpl implements TestRegistryService {
	@Autowired
	private ZxbRegistryService zxbRegistryService;

	/**
	 * 
	 */
	public String hello(String name) {
		return zxbRegistryService.hello(name);
	}

	/**
	 * 兼容spring事务 TODO
	 */
	@Override
	public Object setDate(String name) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("aaa", 1233);
		map.put("bbbb", "中文测试");
		return map;
		// return zxbRegistryService.setDate(name);
	}

}
